package com.ethink.mdm.facade.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.framework.common.db.PageUtils;
import com.ethink.mdm.api.BrandFacade;
import com.ethink.mdm.api.MateFacade;
import com.ethink.mdm.api.info.BrandInfo;
import com.ethink.mdm.api.info.MateSkuInfo;
import com.ethink.mdm.api.request.MateSkuQueryRequest;
import com.ethink.mdm.common.mapper.BrandQueryMapper;
import com.ethink.mdm.common.mapper.MateQueryMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * mateSku Facade接口实现
 *
 * @author default
 * @date 2022-10-31
 */
@RestController
@Slf4j
@RequestMapping("mdm-service/facade/v1/brand")
public class BrandFacadeImpl implements BrandFacade {

    @Autowired
    private BrandQueryMapper brandQueryMapper;

    @Override
    public List<BrandInfo> listBrandByMateGroup(Integer mateGroup) {
        return brandQueryMapper.listBrandByMateGroup(mateGroup);
    }

    @Override
    public List<BrandInfo> listBrandByCodeList(List<String> codeList) {
        return brandQueryMapper.listBrandByCodeList(codeList);
    }
}